package com.yxsd.common.enums;

/**
 * 模块枚举
 * Created by Lionel on 2014/6/5.
 */
public enum ModuleEnums {
    Null(""), // 空模块

    //----------首页
    PubIndex("Pub:Index"),

    //************************************ Admin START ************************************//

    Admin("Admin"),

    AdminSupplier("Admin:Supplier"),
    AdminSupplierList("Admin:Supplier:list"),
    AdminSupplierNew("Admin:Supplier:new"),
    AdminSupplierEdit("Admin:Supplier:edit"),

    AdminMember("Admin:Member"),
    AdminMemberList("Admin:Member:list"),
    AdminMemberNew("Admin:Member:new"),
    AdminMemberEdit("Admin:Member:edit"),

    AdminProduct("Admin:Product"),
    AdminProductList("Admin:Product:list"),
    AdminProductNew("Admin:Product:new"),
    AdminProductEdit("Admin:Product:edit"),

    AdminOrder("Admin:Order"),
    AdminOrderList("Admin:Order:list"),
    AdminOrderNew("Admin:Order:new"),
    AdminOrderEdit("Admin:Order:edit"),
    AdminOrderOrdered("Admin:Order:ordered"),

    User("User"),
    UserOrder("User:Order"),
    UserOrderNew("User:Order:New"),
    UserProduct("User:Product"),
    UserProductList("User:Product:list"),
    ;
    ModuleEnums(String name) {
        this.name = name;
    }

    private String name;

    public String getName() {
        return name;
    }
}
